#if !defined(AFX_DLGVOLUMEVIEW_H__944D3844_F2C5_42D7_AA0B_BF9CD77C5CEC__INCLUDED_)
#define AFX_DLGVOLUMEVIEW_H__944D3844_F2C5_42D7_AA0B_BF9CD77C5CEC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgVolumeView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDlgVolumeView dialog
#include "PHSShareres.h"
#include "Volume.h"

class VolumeManager;
class Project;
class DllExport CDlgVolumeView : public CDialog
{
// Construction
public:
	CDlgVolumeView(Project* pPrj, CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlgVolumeView)
	enum { IDD = IDD_VOLUMEVIEW_DIALOG };
	CListCtrl	m_VolumeList;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgVolumeView)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

	public:
		Volume* ChooseVolume(){
			return m_pChooseVolume;
		}

	private:
		void InitList();

	private:
		VolumeManager* m_pManager;
		Project* m_pPrj;
		Volume* m_pChooseVolume;
// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgVolumeView)
	virtual void OnOK();
	afx_msg void OnNewButton();
	virtual BOOL OnInitDialog();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnItemdblclickVolumeList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDblclkVolumeList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnModifyButton();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGVOLUMEVIEW_H__944D3844_F2C5_42D7_AA0B_BF9CD77C5CEC__INCLUDED_)
